  <div class='body'>
    <table>
      <tr>
        <th>
          厂家：
        </th>
        <td>
          <%= f.select :factory_id, Factory.visible.all.collect {|factory| [ factory.name, factory.id ] } %>
        </td>
      </tr>
      <tr>
        <th>
          编码：
        </th>
        <td>
          <%= f.text_field :code %>
        </td>
      </tr>
      <tr>
        <th>
          名称：
        </th>
        <td>
          <%= f.text_field :name %>
        </td>
      </tr>
      <tr>
        <th>
          备注：
        </th>
        <td>
          <%= f.text_area :remark, :rows => 10 %>
        </td>
      </tr>
      <tr>
        <th></th>
        <td>
          <%= link_to_function '保存', '$("#sf_form").submit()', :class => 'bb' %>
          <%= link_to '返回', storehouses_url , :class => 'bb go_back' %>          
        </td>
      </tr>
    </table>
  </div>
